<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="chtml" uri="http://www.szhelper.com/jsp/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>详细页</title>
<style type="text/css">
label {
	min-width: 120px;
	display: inline-block;
	text-align: right;
}
</style>
<script type="text/javascript">
	function onsubmits() {
		return true;
	}
	$(document).ready(function() {
		$("input[name='fstype']").click(function(){
			if($(this).val()=="0"){
				$("#mobile").show();
				$("#mobileArr").hide();
			}else{
				$("#mobileArr").show();
				$("#mobile").hide();
			}
		});
	});
</script>
</head>
<body>
	<chtml:command title="发送短信" command="smsLog" action="/sm/saveSmsLog" method="POSt"
		 column="1" exclude="mobile,retryCount,state,successTime,sendTime,sendPriority,sendState,smsSendType,partnerId" 
		onSubmit="onsubmits()">
		<chtml:property index="0" label="发送方式">
			<input type="radio" id="fstype" name="fstype" checked="checked" value="0"/>单发
			<input type="radio" id="fstype" name="fstype" value="1"/>群发
		</chtml:property>
		<chtml:property index="1" label="手机号">
			<input type="text" name="mobile" id="mobile"/>
			<textarea name="mobileArr" id="mobileArr" rows="10" style="width:300px;display: none;"></textarea>
			<span style="color: red;">* 国内手机号码，示例：13800138000</span>
		</chtml:property>
		<chtml:property index="8" label="短信渠道">
			<select name="partnerId">
				<c:forEach var="v" items="${list}">
					<option value="${v.id}">${v.name}</option>
				</c:forEach>
			</select>
		</chtml:property>
		<chtml:button destination="/sm/saveSmsLog" showText="发送"></chtml:button>
	</chtml:command>
	
<style type="text/css">
td.data_tab_tdl #fstype{
font: 12px Tahoma;
padding: 2px 6px;
margin: 0 5px 0 8px;
height: 18px;
width: 18px;
}
</style>

</body>
</html>